package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Cart {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer uId; //用户id

    private Integer gId; //商品id

    private Integer quantity; //购买数量

    @TableField(exist = false)
    private ShopInfo shop;// 购买的商品信息

}